const routes = [  {
  path: '/',
  component: () => import('pages/Login.vue') // 登录页面作为独立页面
},
  {
    path: '/',
    component: () => import('layouts/MainLayout.vue'),
    children: [
      { path: '', component: () => import('pages/Index.vue') },
      { path: '/index', component: () => import('pages/Index.vue') },
      { path: '/dataImport', component: () => import('pages/DataImportPage') },
      { path: '/esImport', component: () => import('pages/esImport') },
      // { path: '/esAna', component: () => import('pages/esAna') },
      { path: '/esAna', component: () => import('pages/esAnaCon') },

      { path: '/known', component: () => import('pages/knownpage') },
      { path: '/gas', component: () => import('pages/gasMap') },
      { path: '/faultResultQuery', component: () => import('pages/FaultResultQuery') }
    ]
  },

  // Always leave this as last one,
  // but you can also remove it
  {
    path: '*',
    component: () => import('pages/Error404.vue')
  }
]

export default routes
